<%@ page language="java" pageEncoding="UTF-8" contentType="text/html;charset=utf-8" %>
<%@ include file="/common/taglibs.jsp"%>
	
	<c:choose>
		<c:when test="${fn:length(roleList) gt 0 }">
			<table cellpadding="0" cellspacing="0" style="width: 700px;">
				<tr>
					<c:forEach var="role" items="${roleList }" varStatus="i">
						<td>
							<table>	
								<tr>
									<td style="text-align: center;">
										<c:choose>
											<c:when test="${role.user.userInfo.avatar ne null }">
												<img src="${ctx }/images/avatar.gif" />
											</c:when>
											<c:otherwise>
												<img src="${ctx }/images/avatar.gif" />
											</c:otherwise>
										</c:choose>
									</td>
								</tr>
								<tr>
									<td style="text-align: center;">
										${role.user.displayName }
									</td>
								</tr>
								<tr>
									<td>
										<a href="javascript:void(0)" onclick="bindUser(${role.department.id },${role.user.id },1)">通过</a>&nbsp;&nbsp;<a href="javascript:void(0)" onclick="bindUser(${role.department.id },${role.user.id },2)">忽略</a>
									</td>
								</tr>
							</table>
						</td>
						<c:if test="${!i.first and i.index % 6 eq 0 }">
							</tr>
							<tr>
						</c:if>
					</c:forEach>
				</tr>
			</table>
		</c:when>
		<c:otherwise>
			很抱歉，还没有申请绑定的人员！
		</c:otherwise>
	</c:choose>